/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DataModel;

import java.util.Date;

/**
 *
 * @author Rainiero
 */
public class Payment extends PaymentBase {


    // <editor-fold defaultstate="collapsed" desc="Attributes">
    private Product[] _products;
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Constructor">
    public Payment(int id, Date estimatedDate, double estimatedAmount, int projectId, Product[] products)
    {
        super(id, estimatedDate, estimatedAmount);
        //_projectId = projectId;
        _products = products;
    }

    public Payment(int id, Date estimatedDate, double estimatedAmount, int projectId, Product[] products, Date realDate, double realAmount)
    {
        super(id, estimatedDate, estimatedAmount, realDate, realAmount);
        //_projectId = projectId;
        _products = products;
    }
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Properties">
    public Product[] getProducts() {
        return _products;
    }
    // </editor-fold>

}
